package com.deng.eventflow.core.exception;

import com.deng.eventflow.core.Processor;

public class IncompatibleTypesException extends ConnectorException {
    /**
     * Dummy UID
     */
    private static final long serialVersionUID = 1L;

    public IncompatibleTypesException(Processor source, int i, Processor destination, int j)
    {
        super(source, destination, i, j);
    }

    @Override
    public String getMessage()
    {
        StringBuilder out = new StringBuilder();
        out.append("Cannot connect output ").append(m_sourceIndex).append(" of ").append(m_source)
                .append(" to input ").append(m_destinationIndex).append(" of ").append(m_destination)
                .append(": incompatible types");
        return out.toString();
    }

}
